home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / m_values < prev    next >
Text File  |  2001-04-06  |  689b  |  20 lines

  1. SYNOPSIS
  2.         mixed *m_values(mapping map)
  3.         mixed *m_values(mapping map, int index)
  4.  
  5. DESCRIPTION
  6.         Returns an array with the values of mapping 'map'.
  7.         If <index> is given as a number between 0 and the width of
  8.         the mapping, the values from the given column are returned,
  9.         else the values of the first column.
  10.  
  11. EXAMPLES
  12.         mapping m = ([ "foo":1;2;3, "bar":4;5;6, "baz":7;8;9 ])
  13.         m_values(m)     --> returns ({ 1, 4, 7 })
  14.         m_values(m, 0)  --> returns ({ 1, 4, 7 })
  15.         m_values(m, 1)  --> returns ({ 2, 8, 9 })
  16.  
  17. SEE ALSO
  18.         mappingp(E), mkmapping(E), m_indices(E), m_delete(E),
  19.         sizeof(E), widthof(E), unmkmapping(E).
  20.